package com.tyqx.hashchainbackend.service;


import com.tyqx.hashchainbean.module.SysUser;
import com.tyqx.hashchainbean.vo.SysUpdaUserPwdVO;
import com.tyqx.hashchainbean.vo.SysUserModifyVO;
import com.tyqx.hashchainbean.vo.SysUserSaveVO;
import hashchainutil.common.BackendPage;

import java.util.List;
import java.util.Map;


public interface SysUserService {

    public SysUser getById(Long userId) throws Exception;

    public SysUser getByUserCode(String userCode) throws Exception;

    public List<SysUser> getListByMap(Map<String, Object> param) throws Exception;

    public Integer getCountByMap(Map<String, Object> param) throws Exception;

    public Integer save(SysUserSaveVO sysUserSaveVO) throws Exception;

    public Integer modify(SysUserModifyVO sysUserModifyVO) throws Exception;

    public Integer removeById(Long userId) throws Exception;

    public BackendPage<List<SysUser>> queryPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize) throws Exception;

    //修改用户状态
    public Integer updateActivate(Integer userActivate, Long userId);


    public Integer getUserModify(SysUserModifyVO sysUserModifyVO) throws Exception;

    //更改用户密码
    public Integer updateUserPwdById(SysUpdaUserPwdVO sysUpdaUserPwdVO);

    //sysUser主页面删除
    public Integer delActivate(Integer userAcivate, Long userId);

}
